package net.courier.remoting.server;

import java.lang.reflect.Method;

public interface MethodInvokeInterceptor {
	public boolean beforeInvoke(Object target, Method method, Object[] args) throws Throwable;

	public Object afterInvoke(Object target, Method method, Object[] args, Object result, Object lastReturn)
			throws Throwable;

	/**
	 * 获取order值(order值越小越先处理)
	 * 
	 * @return
	 */
	int getOrder();
}
